﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.BizComponent.Charge.UI.VM
{
    /// <summary>
    /// 读卡按钮
    /// </summary>
    public class ButtonComponentVm: NotifyPropertyChanged
    {
        /// <summary>
        /// 业务检索方式标识
        /// </summary>
        private long? _bizSearchTypeId;
        public long? bizSearchTypeId { get { return _bizSearchTypeId; } set
            {
                if(_bizSearchTypeId != value)
                {
                    _bizSearchTypeId = value;
                    OnPropertyChanged(nameof(bizSearchTypeId));
                }
            } }

        /// <summary>
        /// 业务检索方式代码
        /// </summary>
        private String _bizSearchTypeCoding;
        public String bizSearchTypeCoding { get { return _bizSearchTypeCoding; } set
            {
                if(value != _bizSearchTypeCoding)
                {
                    _bizSearchTypeCoding = value;
                    OnPropertyChanged(nameof(bizSearchTypeCoding));
                }
            } }

        /// <summary>
        /// 业务检索方式名称
        /// </summary>
        private String _bizSearchTypeName;
        public String bizSearchTypeName { get { return _bizSearchTypeName; } set
            {
                if(value != _bizSearchTypeName)
                {
                    _bizSearchTypeName = value;
                    OnPropertyChanged(nameof(bizSearchTypeName));
                }
            } }

        /// <summary>
        /// 默认卡类型
        /// </summary>
        public String _defaultCardType;
        private String defaultCardType { get { return _defaultCardType; } set
            {
                if (value != _defaultCardType)
                {
                    _defaultCardType = value;
                    OnPropertyChanged(nameof(defaultCardType));
                }
            } }

        /// <summary>
        /// 默认卡类型名称
        /// </summary>
        private String _defaultCardTypeName;
        public String defaultCardTypeName { get { return _defaultCardTypeName; } set
            {
                if(_defaultCardTypeName != value)
                {
                    _defaultCardTypeName = value;
                    OnPropertyChanged(nameof(defaultCardTypeName));
                }
            } }

        /// <summary>
        /// 触发方式代码名称
        /// </summary>
        private String _triggerTypeName;
        public String triggerTypeName { get { return _triggerTypeName; } set
            {
                if(_triggerTypeName != value)
                {
                    _triggerTypeName = value;
                    OnPropertyChanged(nameof(triggerTypeName));
                }
            } }

        /// <summary>
        /// 触发方式代码
        /// </summary>
        private String _triggerTypeCoding;
        public String triggerTypeCoding { get { return _triggerTypeCoding; } set
            {
                if(_triggerTypeCoding != value)
                {
                    _triggerTypeCoding = value;
                    OnPropertyChanged(nameof(triggerTypeCoding));
                }
            } }

        /// <summary>
        /// 文本框提示内容
        /// </summary>
        private String _inputHintContent;
        public String inputHintContent { get { return _inputHintContent; } set
            {
                if(_inputHintContent != value)
                {
                    _inputHintContent = value;
                    OnPropertyChanged(nameof(inputHintContent));
                }
            } }

        /// <summary>
        /// 接口标识
        /// </summary>
        private long? _interfaceId;
        public long? interfaceId { get { return _interfaceId; } set
            {
                if(_interfaceId != value)
                {
                    _interfaceId = value;
                    OnPropertyChanged(nameof(interfaceId));
                }
            } }

        /// <summary>
        /// 接口名称
        /// </summary>
        private String _interfaceName;
        public String interfaceName { get { return _interfaceName; } set
            {
                if( _interfaceName != value)
                {
                    _interfaceName = value;
                    OnPropertyChanged(nameof(interfaceName));
                }
            } }

        /// <summary>
        /// 启用标志
        /// </summary>
        private String _enabledFlag;
        public String enabledFlag { get { return _enabledFlag; } set
            {
                if(_enabledFlag != value)
                {
                    _enabledFlag = value;
                    OnPropertyChanged(nameof(enabledFlag));
                }
            }
        }
        /// <summary>
        /// 是否选中
        /// </summary>
        private bool _isChecked;
        public bool isChecked
        {
            get { return _isChecked; } set
            {
                if(_isChecked != value)
                {
                    _isChecked = value;
                    OnPropertyChanged(nameof(isChecked));
                }
            }
        }
    }
}
